Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lumino adv tree #9

Closed

Conversation

markgrahamdawson
Copy link

@markgrahamdawson markgrahamdawson commented Mar 7, 2024

These changes build on the work undertaken to save & restore workspace layout on navigation cylc#1664

Which is part of a larger issue cylc#662

There is an equivalent pull request for the tree view cylc#1688

Requirements check-list

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Appropriate tests are included (unit and/or functional).
  • Already covered by existing tests.
  • Does not need tests (why?).
  • Appropriate change log entry included.
  • No change log entry required (why? e.g. invisible to users).
  • I have opened a documentation PR at cylc/cylc-doc/pull/XXXX.
  • No documentation update required.

if (!taskTokens?.task) {
if (!taskTokens || !taskTokens.task) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment on lines 227 to 231
/**
* The selection expand/collapse option.
* @type {import('vue').Ref<string>}
*/
const expandAll = useInitialOptions('expandAll', { props, emit }, ref(null))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it makes sense to store this, as this is not really a setting but a trigger. For example, a user could click collapse all, then expand a selection of nodes. If they navigated away then back, they would find all nodes collapsed again. We don't currently have a way to store the expanded/collapsed state of every node in the tree as a whole.

Suggested change
/**
* The selection expand/collapse option.
* @type {import('vue').Ref<string>}
*/
const expandAll = useInitialOptions('expandAll', { props, emit }, ref(null))
/**
* Setting this to an empty array causes all nodes to collapse.
* Setting it to an array of node types causes those node types to expand.
* @type {import('vue').Ref<string[]|null>}
*/
const expandAll = ref(null)


/**
* The job id input and selected task filter state.
* @type {import('vue').Ref<string>}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @type {import('vue').Ref<string>}
* @type {import('vue').Ref<Object>}

@markgrahamdawson markgrahamdawson marked this pull request as ready for review March 11, 2024 13:36
@MetRonnie
Copy link
Owner

MetRonnie commented Mar 11, 2024

This branch has been merged so now need to open a PR against master. Can you rebase onto master & squash the commits down before opening the PR please

@MetRonnie MetRonnie closed this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants